package pri.black.garden.biz;

import java.time.LocalDateTime;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import pri.black.garden.domain.PlanLog;
import pri.black.garden.service.IPlanLogService;

/**
 * plan-logBiz业务层处理
 * 
 * @author black
 * @date 2025-02-19
 */
@Service
public class PlanLogBiz
{
    @Autowired
    private IPlanLogService planLogService;

    public IPlanLogService getService(){
        return planLogService;
    }

    /**
     * 新增PlanLog
     */
    public boolean save(PlanLog planLog){
        planLog.setCreateTime(LocalDateTime.now());
        return planLogService.save(planLog);//看情况提取至controller中
    }

    /**
     * 更新PlanLog
     */
    public boolean update(PlanLog planLog){
        return planLogService.updateById(planLog);
    }
}
